<?xml version='1.0' encoding='UTF-8' ?>

<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="./resources/template/layout.xhtml">

    <ui:define name="content">

        <div id="div-login">

            <h:form prependId="false">

                <p:panel id="panel" header="Área Restrita">  

                    <p:messages id="msg" showDetail="true" showSummary="false" />

                    <div id="msg-erro" class="ui-messages ui-widget">
                        <div class="ui-messages-error ui-corner-all">
                            <span class="ui-messages-error-icon"></span>
                            <ul>
                                <li>
                                    <span class="ui-messages-error-detail">Usuário sem privilégios de acesso.</span>
                                </li>
                            </ul>
                        </div>
                    </div>

                    <div style="float: left;">
                        <img id="img-cadeado" 
                             src="#{facesContext.externalContext.requestContextPath}/resources/img/cadeado.jpg" 
                             border="0" 
                             width="90" 
                             height="80" onclick="history.back()" />
                    </div>

                    <div style="float: left; border: 1px solid gray; width: 200px;" class="ui-corner-all">
                        <p style="padding: 10px; text-align: justify;">
                            Para maiores informações entre em contato com o Administrador do sistema.
                        </p>
                    </div>

                    <div style="clear: both"></div>

                    <p:spacer height="5" />
                    
                    <p:separator />

                    <div style="text-align: right;">

                        <p:commandButton value="Home"
                                         image="ui-icon ui-icon-home"
                                         ajax="false"
                                         action="home?faces-redirect=true"
                                         update="grid msg"
                                         tabindex="3"
                                         style="width: 80px;" />

                    </div>

                </p:panel>

            </h:form>

        </div>

    </ui:define>

</ui:composition>
